{#**
*
* 功能描述（订单详情模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}

{#include file="header.tpl" title="订单" menuIdx=2 headImg="index" #}
{#include file="define.tpl" scope=parent#}
<div class="block box">
 <div id="ur_here" class="user_here">
  当前位置: <a href="index.php">首页</a> <code>&gt;</code> 用户中心 </div>
</div>
<div class="block clearfix"> 
  <div class="AreaR" style="width:996px">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
              <h5 class="user_order_title"><img src="images/dc_icon_2.gif"><span>商品列表</span>
        </h5>
        <div class="blank"></div>
         <table width="95%" border="0" cellpadding="5" cellspacing="1" style="margin-left:43px;">
            <tbody>
			{#foreach $goods as $good#}
			<tr>
            <td bgcolor="#ffffff">
            <span class="f8">商品名称：</span> <a href="index.php?action=food.detail&id={#$good['good_id']#}&version={#$good['version']#}" target="_blank" class="f6">{#$good['name']#}</a>
            </td>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="left" bgcolor="#ffffff"><span class="f8">单价：</span> ￥{#$good['price']#}元</td>
            <td align="left" bgcolor="#ffffff"><span class="f8">数量：</span> {#$good['cnt']#}</td>
            <td align="left" bgcolor="#ffffff"><span class="f8">规格：</span> {#$good['size']#}</td>
            <td align="left" bgcolor="#ffffff"><span class="f8">小计：</span> ￥{#$good['price'] * $good['cnt']#}元</td>
 	        </tr>
		   {#/foreach#}

		  <tr>
            <td class="f8" align="left" bgcolor="#ffffff" colspan="8">生日蜡烛：<font color="#726964">&nbsp;{#$need[$order['attach2']]#}</font></td>
          </tr>
          		 

                    <tr>
            <td class="f8" align="left" bgcolor="#ffffff" colspan="8">产品图册：<font color="#726964">&nbsp;{#$need[$order['attach1']]#}</font></td>
          </tr>
          <tr>
            <td colspan="8" bgcolor="#ffffff" align="right" class="f8">
            商品总价: ￥{#$order['amount_pre']#}元            </td>
          </tr>
        </tbody></table>
        <div class="blank"></div>
        <h5 class="user_order_title"><img src="images/dc_icon_3.gif"><span>收货信息</span></h5>
        <div class="blank"></div>
          <table width="100%" border="0" cellpadding="5" cellspacing="1">
        <tbody>
		{#if $order['delivery_type'] == 2#}
		<tr>
            <td class="f8" align="right" bgcolor="#ffffff">配送方式：</td>
            <td align="left" bgcolor="#ffffff">{#$g_dely_type[$order['delivery_type']]#}<span class="f9">（若想修改配送方式，请致电4006517217）</span></td>
          </tr>
             <tr> 
              <td align="right" class="f8">取货时间：</td>
              <td align="left" bgcolor="#ffffff">{#$order['delivery_time']#}</td>
            </tr>
                        <tr>
              <td width="100" align="right" class="f8">取货人信息：</td>
              <td align="left" bgcolor="#ffffff">{#$order['consignee']#} {#$order['mobile_to']#} {#$order['area']#}{#$order['address']#}</td>
            </tr>
            <tr>
              <td width="100" align="right" class="f8">取货地址：</td>
              <td align="left" bgcolor="#ffffff">{#$order['area']#}{#$order['address']#}</td>
            </tr>
            <tr>
              <td align="right" class="f8">您的手机：</td>
			  <td align="left" bgcolor="#ffffff">{#$order['mobile_from']#}</td>
			</tr>
        </tbody></table>
		{#else#}
		<tr>
            <td class="f8" align="right" bgcolor="#ffffff">配送方式：</td>
            <td align="left" bgcolor="#ffffff">送货上门 <span class="f9">（若想修改配送方式，请致电4006517217）</span></td>
          </tr>
			<tr>
              <td align="right" class="f8" >标志建筑：</td>
              <td align="left" bgcolor="#ffffff">{#$order['sign_building']#} </td>
             </tr>
             <tr> 
              <td align="right" class="f8">收货时间：</td>
              <td align="left" bgcolor="#ffffff">{#$order['delivery_time']#}</td>
            </tr>
                        <tr>
              <td width="100" align="right" class="f8">收货人信息：</td>
              <td align="left" bgcolor="#ffffff">{#$order['consignee']#} {#$order['mobile_to']#} {#$order['area']#}{#$order['address']#}</td>
            </tr>
            <tr>
              <td align="right" class="f8">您的手机：</td>
			  <td align="left" bgcolor="#ffffff">{#$order['mobile_from']#}</td>
			</tr>
                        <tr>
            <td align="right" class="f8">
            </td><td align="right"></td>
            </tr>
                       </tbody></table>
          <div class="blank"></div>
		{#/if#}
		<div class="blank"></div> 
        <h5 class="user_order_title"><img src="images/dc_icon_3.gif"><span>其他信息</span></h5>
        <div class="blank"></div>
          <table width="100%" border="0" cellpadding="5" cellspacing="1">
            <tbody>
			{#if $order['inv_type'] != 0#}
            <tr>
              <td width="100" align="right" class="f8">发票类别：</td>
              <td align="left" bgcolor="#ffffff">{#$inv_type[$order['inv_type']]#}</td>
            </tr>
            <tr>
              <td width="100" align="right" class="f8">发票抬头：</td>
              <td align="left" bgcolor="#ffffff">{#$order['inv_title']#}</td>
            </tr>
			{#/if#}
            <tr>
              <td width="100" align="right" class="f8">留言信息</a>：</td>
              <td align="left" bgcolor="#ffffff">
			  <form action='index.php?action=order.modmsg&id={#$order['id']#}' method='POST' onsubmit='ajax_commit(this); return false'/>
			 	 <textarea name='msg'>{#$order['message']#}</textarea>
				 <label class='warning'>转账、汇款请在此备注相关信息</label>
				 <br/>
				 <input type='submit' value='修改订单备注' />
				 <a href="index.php?action=user.lvmsg" class="f9">[发送/查看商家留言]</a>
			  </form>
			  </td>
            </tr>
          </tbody></table>
        <div class="blank"></div> 
        <h5 class="user_order_title"><img src="images/dc_icon_1.gif"><span>订单状态</span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" style="position:relative;">
        <tbody><tr>
          <td width="100" align="right" class="f8">订单号：</td>
          <td align="left" bgcolor="#ffffff">{#$orderid_base + $order['id']#}
					</td>
        </tr>
        <tr>
          <td align="right" class="f8">订单状态：</td>
          <td align="left" bgcolor="#ffffff">{#$o_sta[$order['status']]#}&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
          <td align="right" class="f8">付款状态：</td>
          <td align="left" bgcolor="#ffffff"><span style="float:right;margin-right:355px;"></span>{#$p_sta[$order['pay_status']]#}&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr style="position:relative;">
          <td align="right" class="f8" valign="top">支付方式：</td> 
          <td>
          <div style="display:inner-block;">
			{#$p_type[$order['pay_type']]#}。应付款金额: <strong>￥{#$order['amount']#}元</strong> 
          </div>   
		  {#if $order['pay_status'] == 0#}
		<form name="payment" method="post" action="index.php?action=order.modpaytype&id={#$order['id']#}" onsubmit='if(ajax_commit(this) == 0) $(this).remove(); return false'>
		  <i class="btn_edit_form"> 
             <span class="f9"> 改用其他在线支付方式：</span>
              <select name="pay_type">
				{#foreach $p_type as $k => $item#}
				{#if $k != $order['pay_type'] && $k != 2 && $k < 20 #}
                <option value="{#$k#}">
				{#$item#}
                </option>
				{#/if#}
				{#/foreach#}
				</select>
              <input type="submit" class="btn_blue_edit" value=""><br>
              <div class="f9" style="margin-right:255px;line-height:20px;">（若想改回货到付款，请致电4006517217）</div>
              </i>
         </form>
		 {#/if#}
          </td>
        </tr>
		</tbody></table>
         <div class="blank"></div>
        <h5 class="user_order_title"><img src="images/dc_icon_1.gif"><span>费用总计</span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1">
          <tbody>
		  <tr>
            <td align="right" class="f8" width="100">商品总价: ￥{#$order['amount_pre']#}元</td>
          </tr>
		  {#if $order['trade_money1'] != 0#}
		  <tr>
            <td align="right" class="f8" width="100">使用代金卡: {#$order['trade_money1']#}</td>
		  </tr>
		  {#/if#}
		  {#if $order['trade_money1'] != 0#}
		  <tr>
            <td align="right" class="f8" width="100">使用积分: {#$order['trade_money2']#}</td>
          </tr>
		  {#/if#}
          <tr>
            <td align="right" class="f8">应付款金额: ￥{#$order['amount']#}元            </td>
          </tr>
                    </tbody></table>
        <div class="blank"></div>
      </div>
     </div>
    </div>
  </div>
  
</div>
<div class="blank"></div>
{#include file="footer.tpl"#}

